Expand description

Run a function or closure in a pseudoterminal.

This library works by forking the current process into a pseudoterminal, running the closure, and then reporting the resulting status code.

  • 0: success, returned as Ok(())
  • Anything else: failure, returned as [Err(Error)]

See run_in_pty for usage.

Enums

The possible errors encountered when calling run_in_pty.

Functions

Run a closure in a forked pseudoterminal process.